package com.iwhalecloud.uncc.scheduler;

import com.iwhalecloud.uncc.archiver.Archiver;

/**
 * @author zq
 * @date 2021/10/15 14:56
 * @description 动态调度任务线程
 */
public class ScheduleTask implements Runnable{

    private String id;

    public String getId() {
        return id;
    }

    private Archiver archiver;

    public ScheduleTask(String id , Archiver archiver){
        this.id = id;
        this.archiver = archiver;
    }

    @Override
    public void run() {
        archiver.archive();
    }
}
